package com.chw.extend.swagger;

import org.springframework.context.annotation.Bean;

import springfox.documentation.service.ApiInfo;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableSwagger2
public class SwaggerConfig {
	
	@Bean
	public Docket addUserDocket() {
		Docket docket = new Docket(DocumentationType.SWAGGER_2);
		ApiInfo apiInfo = new ApiInfo(
				"【接口资源说明文档】 - api docs", 
				"API接口说明",
				"",//版本 
				"", //My Apps API terms of service
				"Tour", // 联系人
				"", //Apache 2.0
				"");//My Apps API License URL
		docket.apiInfo(apiInfo);
		return docket;
	}

}
